import { Request, Response } from 'express';

export default {
  // 'POST /person/organization/page': (req: Request, res: Response) => {
  //   res.send({
  //     success: true,
  //     result: {
  //       items: [
  //         {
  //           code: '6cb7fb33-0d00-4720-9913-c68558fdfb36',
  //           name: '总部门',
  //           description: '总部门',
  //           parentCode: '',
  //         },
  //         {
  //           code: '6cb7fb33-0d00-4720-9913-c68558fdfb38',
  //           name: '分部门1',
  //           description: '分部门1',
  //           parentCode: '6cb7fb33-0d00-4720-9913-c68558fdfb36',
  //         },
  //         {
  //           code: '6cb7fb33-0d00-4720-9913-c68558fdfb35',
  //           name: '分部门12',
  //           description: '分部门12',
  //           parentCode: '6cb7fb33-0d00-4720-9913-c68558fdfb38',
  //         },
  //       ],
  //       totalCount: 3,
  //     },
  //   });
  // },
  'POST /person/organization/list': (req: Request, res: Response) => {
    res.send({
      success: true,
      result: [
        {
          code: '6cb7fb33-0d00-4720-9913-c68558fdfb36',
          name: '总部门',
          description: '总部门',
          parentCode: '',
        },
        {
          code: '6cb7fb33-0d00-4720-9913-c68558fdfb38',
          name: '分部门1',
          description: '分部门1',
          parentCode: '6cb7fb33-0d00-4720-9913-c68558fdfb36',
        },
        {
          code: '6cb7fb33-0d00-4720-9913-c68558fdfb35',
          name: '分部门12',
          description: '分部门12',
          parentCode: '6cb7fb33-0d00-4720-9913-c68558fdfb38',
        },
      ],
    });
  },
  'POST /person/organization/create': (req: Request, res: Response) => {
    res.send({
      success: true,
      result: null,
    });
  },
  'POST /person/organization/update': (req: Request, res: Response) => {
    res.send({
      success: true,
      result: null,
    });
  },
  'POST /person/employee/page': (req: Request, res: Response) => {
    res.send({
      success: true,
      result: {
        totalCount: 296,
        items: [
          {
            code: '405fd107-ca5b-4017-9d2f-1ca3ca2869da',
            name: '陈翌萌',
            positionCode: 'ROLE5',
            positionName: '职工',
            organizationCode: 'f868e818-4baf-4132-b727-85d9b95a01d7',
            organizationName: '麻醉科手术室',
            createdAt: '2024-06-06T11:10:16.087116+08:00',
          },
          {
            code: '2b99398c-55c7-494f-af2b-824b70151034',
            name: '李宗俸',
            positionCode: '2',
            positionName: '维护员',
            organizationCode: '3033cd87-697d-4d8c-8d1c-2f1b4055bb7a',
            organizationName: '信息中心临时人员',
            createdAt: '2024-01-06T11:10:16.087116+08:00',
          },
          {
            code: '0fa85dd0-72ed-49f7-8f26-8b6ff0c561d9',
            name: '王富平（移动）',
            positionCode: '2',
            positionName: '维护员',
            organizationCode: '3033cd87-697d-4d8c-8d1c-2f1b4055bb7a',
            organizationName: '信息中心临时人员',
            createdAt: '2024-05-06T11:10:16.087116+08:00',
          },
          {
            code: 'c29be687-4fd0-4d2e-a402-25c93d8bc4ff',
            name: '杨刚（移动）',
            positionCode: 'ROLE5',
            positionName: '职工',
            organizationCode: 'f868e818-4baf-4132-b727-85d9b95a01d7',
            organizationName: '麻醉科手术室',
            createdAt: '2024-04-06T11:10:16.087116+08:00',
          },
          {
            code: 'b1aaa5fb-7e87-4270-8f45-b6c68153dcfa',
            name: '吴林波',
            positionCode: 'ROLE5',
            positionName: '职工',
            organizationCode: 'f868e818-4baf-4132-b727-85d9b95a01d7',
            organizationName: '麻醉科手术室',
            createdAt: '2024-03-06T11:10:16.087116+08:00',
          },
        ],
      },
    });
  },
};
